/**
 * Created by Administrator on 2017/2/12.
 */
import { Component } from '@angular/core';
import { ChecknoService } from './checkno.serve';
import { Router, ActivatedRoute, Params } from '@angular/router';

@Component({
  moduleId: module.id,
  selector: 'my-checkno',
  templateUrl: 'checkno.html',
  providers:[ ChecknoService ]
})
export class ChecknoComponent {
  private productinfro='';
  constructor(
      private checknoService:ChecknoService,
      private route: ActivatedRoute,
      private router: Router,
  ){}

  //得到未审核材料的信息
  getfac(){
    this.checknoService.grtinfro()
        .subscribe(
            res =>{this.productinfro =res['data'];
              console.log(this.productinfro)},
            error =>  { console.log(error)}
        );
  }

  ngOnInit() {
    this.getfac()
  }

  //跳转材料详情页
  gomatrialdetial(id:string){
    this.router.navigate(['/facdit',id]);
  }
}
